package top.jiangyixin.food.platform.order.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * TODO
 *
 * @author jiangyixin
 * @version 1.0
 * @date 2021/6/22 下午2:38
 */
@Configuration
public class RabbitConfig {
    
    @Bean
    public TopicExchange foodExchange() {
        return new TopicExchange("exchange.food", true, false);
    }
    
    
}
